Objects Reference

class static_mesh : public bsp_object

Definition

class static_mesh : public bsp_object
{
  public:
  mesh *objmesh;

  static_mesh()
  { type=TYPE_STATIC_MESH; objmesh=new mesh; };

  mesh *ray_intersect(vector& ro,vector& rd,vector& ip,float& dist,int &facenum,float rad=0.0f);
  int ray_intersect_test(vector& ro,vector& rd,float rad);
  int message(vector& p,float rad,int msg,int param,void *data);

  virtual ~static_mesh()
  { if (objmesh) delete objmesh; };
};

Data Members

Member Type Description
mesh objmesh * mesh with some bsp faces

Methods

ray_intersect, ray_intersect_test, message

Remarks

This class implements the bsp faces in a bsp leaf node. All leaf nodes have a static_object as their first bsp_node element in the elem linked list. It is just like a Fly3D plug-in object and in the only plug-in object already included in the engine dll.

See Also

mesh, bsp_object, bsp_node